package com.red.star.wechat.data.mappers;

import com.red.star.wechat.data.core.base.MyMapper;
import com.red.star.wechat.data.entity.MsgTemplate;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 模板消息
 */
public interface MsgTemplateMapper extends MyMapper<MsgTemplate> {

	List<MsgTemplate> templateList(MsgTemplate msgTemplate);

	@Select(value = "select * from t_msg_template where type = #{type} and mall_code = #{mallCode}")
	MsgTemplate getMsgTemplateByTypeAndMallCode(@Param("type") String type, @Param("mallCode") String mallCode);

}
